<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{globals.lang}}" lang="{{globals.lang}}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="ROBOTS" content="NOARCHIVE" />
<title>{{title}}</title>


{# fancybox #}
{% if globals.fancybox_enabled %}
	<link rel="stylesheet" href="{{globals.base_static}}js/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
{% endif %}

{% if globals.css_main %}
	<link rel="stylesheet" type="text/css" media="all" href="{{globals.base_static}}{{globals.css_main}}"/>
{% endif %}

{% if globals.css_color %}
	<link rel="stylesheet" type="text/css" media="all" href="{{globals.base_static}}{{globals.css_color}}"/>
{% endif %}

{% for css in globals.extra_css %}
<link rel="stylesheet" type="text/css" media="all" href="{{globals.base_static}}css/{{css}}"/>
{% endfor %}

{# Definitions for mobile, iPad and TVs #}
{% if globals.mobile %}
<link rel="stylesheet" type="text/css" media="all" href="{{globals.base_static}}css/handheld.css"/>
{% else %}
<style type="text/css">
@import url({{globals.base_static}}css/handheld.css) print,tv,handheld,screen and (max-device-width: 780px);
</style>
{% endif %}

<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" media="screen" href="{{globals.base_static}}css/ie6-hacks.css" />
<![endif]-->

<meta name="generator" content="meneame" />

{% if globals.noindex %}
	<meta name="robots" content="noindex,follow"/>
{% endif %}

{% if globals.tags %}
	<meta name="keywords" content="{{globals.tags}}" />
{% endif %}

{% if globals.description %}
	<meta name="description" content="{{globals.description}}" />
{% endif %}

{% if globals.link %}
	<link rel="pingback" href="http://{{globals.server_name}}{{globals.base_url}}xmlrpc.php"/>
	{# <link rel="prefetch" href="{{ globals.link.url|escape }}"/> #}
{% endif %}

<link rel="microsummary" type="application/x.microsummary+xml" href="{{globals.base_url}}microsummary.xml" />
<link rel="search" type="application/opensearchdescription+xml" title="{% trans _('búsqueda')%}" href="http://{{globals.server_name}}{{globals.base_url}}opensearch_plugin.php"/>
<link rel="alternate" type="application/rss+xml" title="{% trans _('publicadas')%}" href="http://{{globals.server_name}}{{globals.base_url}}rss2.php" />
<link rel="alternate" type="application/rss+xml" title="{% trans _('pendientes')%}" href="http://{{globals.server_name}}{{globals.base_url}}rss2.php?status=queued" />
<link rel="alternate" type="application/rss+xml" title="{% trans _('comentarios')%}" href="http://{{globals.server_name}}{{globals.base_url}}comments_rss2.php" />

{% if globals.favicon %}
	<link rel="shortcut icon" href="{{globals.base_static}}{{globals.favicon}}" type="image/x-icon"/>
{% else %}
	<link rel="shortcut icon" href="{{globals.base_static}}img/favicons/favicon4.ico" type="image/x-icon"/>
{% endif %}

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js" type="text/javascript"></script>
<script src="{{globals.base_url}}js/{{globals.js_main}}" type="text/javascript" charset="utf-8"></script>


{% for js in globals.extra_js %}
	{% if js|substr:"0, 4" == 'http' %}
		<script src="{{js}}" type="text/javascript"></script>
	{% else %}
		<script src="{{globals.base_static}}js/{{js}}" type="text/javascript"></script>
	{% endif %}
{% endfor %}

{% if globals.extra_js_text %}
	<script type="text/javascript">
	{{globals.extra_js_text}}
	</script>
{% endif %}

<script type="text/javascript">
if(top.location != self.location)top.location = self.location;
var base_key="{{globals.security_key}}";
var link_id = {% if globals.link %}{{ globals.link.id }}{% else %}0{% endif %};
var user_id = {{ current_user.user_id }};
var mobile_client = {{ globals.mobile }};
</script>

{% if globals.thumbnail %}
	<meta name="thumbnail_url" content="{{globals.thumbnail}}"/>
{% else %}
	<meta name="thumbnail_url" content="http://{{globals.static_server_name}}{{globals.base_url}}{{globals.thumbnail_logo}}"/>
{% endif %}

{% if globals.extra_head %}
	{{ globals.extra_head}}
{% endif %}

</head>
<body id="{{id}}" {{globals.body_args}}>
<div id="wrap">
<div id="header">
<a href="{{globals.base_url}}" title="{% trans _('inicio') %}" id="logo">{% trans _("menéame") %}</a>
<ul class="headtools">

<li class="searchbox">
<form action="{{globals.base_url}}search.php" method="get" name="top_search">
<img src="{{globals.base_static}}img/common/search-left-04.png" width="6" height="22" alt=""/>
{% if globals.q %}
	<input type="text" name="q" value="{{globals.q|escape}}" />
{% else %}
	<input name="q" value="{% trans _('buscar')%}..." type="text" onblur="if(this.value=='') this.value='{% trans _('buscar')%}...';" onfocus="if(this.value=='{% trans _('buscar')%}...') this.value='';"/>
{% endif %}

<a href="javascript:document.top_search.submit()"><img class="searchIcon" alt="{% trans _('buscar')%}" src="{{globals.base_static}}img/common/search-04.png" id="submit_image" width="28" height="22"/></a>

{% if globals.search_options %}
	{% for name, value in globals.search_options %}
		<input type="hidden" name="{{name}}" value="{{value}}"/>
	{% endfor %}
{% endif %}

</form>
</li>

{% if current_user.authenticated %}
	<li><a href="{{ current_user.user_login|useruri }}"
		{% if globals.greetings %}
			 title="{% trans _('Notifallas te saluda en') %} {{globals.greetings[greeting]}}"
		{% endif %}>
	{{greeting}}&nbsp;{{current_user.user_login}}&nbsp;<img class="tooltip u:{{current_user.user_id}}" src="{% exec get_avatar_url current_user.user_id, current_user.user_avatar, 20 %}" width="20" height="20" alt="{{current_user.user_login}}"/></a></li>
	<li><a href="{{globals.base_url}}login.php?op=logout&amp;return={{globals.uri|urlencode}}">{%trans _('cerrar sesión')%} <img src="{{globals.base_static}}img/common/logout-bt-02.png" alt="logout" title="logout" width="22" height="16" /></a></li>
{% else %}
	<li><a href="{{globals.base_url}}register.php"> {% trans _('registrarse') %} <img src="{{globals.base_static}}img/common/register-bt-02.png" alt="register" title="register" width="16" height="18" /></a></li>
	<li><a href="{{globals.base_url}}login.php?return={{globals.uri|urlencode}}">{% trans _('login') %} <img src="{{globals.base_static}}img/common/login-bt-02.png" alt="login" title="login" width="22" height="16" /></a></li>
{% endif %}

</ul></div>

<div id="naviwrap">
	<ul id="navigation">
	<li><a href="{{globals.base_url}}submit.php">{% trans _('enviar historia') %}</a></li>
	<li><a href="{{globals.base_url}}shakeit.php">{% trans _('pendientes') %}</a></li>
	<li><a href="{{globals.base_url}}sneak.php">{% trans _('fisgona') %}</a></li>
   	<li><a href="javascript:fancybox_gallery('all');">{% trans _('galería') %}</a></li>
	<li><a href="{{globals.base_url}}notame/">{% trans _('nótame') %}</a></li>
	</ul>

	<ul class="headtools">
	<li><a href="http://meneame.wikispaces.com/Comenzando"><img src="{{globals.base_static}}img/common/help-bt-02.png" alt="help" title="{% trans _('ayuda') %}" width="13" height="16" />&nbsp;</a></li>

	{% if current_user.user_id > 0 %}
		{% if current_user.admin %}
			<li><a href="{{globals.base_url}}admin/bans.php">admin <img src="{{globals.base_static}}img/common/tools-bt-02.png" alt="tools button" title="{%trans _('administración')%}" width="16" height="16" /> </a></li>
		{% endif %}
		{% if current_user.posts_answers || globals.show_conv_counters %}
			<li><a href="{{ current_user.user_login | posts_url }}/_conversation" title="{% trans _('respuestas a notas') %}"><span id="p_conv_c">{{ current_user.posts_answers }}</span> {% trans _('notas') %} <img src="{{globals.base_static}}img/common/icon_post-01.png" alt="" width="19" height="19"/></a></li>
		{% endif %}
		{% if current_user.comments_answers || globals.show_conv_counters %}
			<li><a href="{{ current_user.user_login | user_uri:"conversation" }}" title="{% trans _('respuestas a comentarios') %}"><span id="c_conv_c">{{ current_user.comments_answers }}</span> {% trans _('comentarios') %} <img src="{{globals.base_static}}img/common/icon_comment-01.png" alt="" width="19" height="19"/></a></li>
		{% endif %}
		{% if ! globals.mobile AND (current_user.new_friends || globals.show_conv_counters) %}
			<li><a href="{{ current_user.user_login | user_uri:"friends_new" }}" title="{% trans _('nuevos amigos') %}"><span id="n_friends_c">{{ current_user.new_friends }}</span> {% trans _('nuevos') %} <img src="{{globals.base_static}}img/common/icon_friend_other_00.png" alt="" width="18" height="16"/></a></li>

		{% endif %}
	{% endif %}

	</ul>


</div>
{% exec do_banner_top as foo%}
<div id="container">
